package com.backend.securitiessystem.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 快讯实体类
 *
 * @author tuyufeng
 * @date 2024/05/19
 */
@TableName("tb_flash")
@Data
@ApiModel("快讯实体类")
public class Flash implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer flashId;

    @ApiModelProperty("快讯标题")
    private String title;

    @ApiModelProperty("快讯时间")
    private Date time;

    @ApiModelProperty("快讯类型(1: 信息 , 2: 提示)")
    private Integer type;

    @ApiModelProperty("加入时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("修改时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}